package com.aptemo.webetek.client;

import com.aptemo.webetek.client.commands.Action;
import com.aptemo.webetek.client.commands.Response;
import com.aptemo.webetek.client.exceptions.BackendException;
import com.aptemo.webetek.client.exceptions.WebetekLoginException;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("user")
public interface WebetekUserService extends RemoteService
{

	<T extends Response> T invoke(Action<T> action) throws BackendException, WebetekLoginException;

}
